<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<META HTTP-EQUIV=REFRESH CONTENT=5>
		<title>Gas Managements System - <%=(String) session.getAttribute("lt")%></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" src="script/mm_menu.js">
</script>
		<script type="text/javascript" src="script/general.js">
</script>
		<script type="text/javascript" src="script/gen_validatorv31.js">
</script>
		<script type="text/javascript" src="script/form_validation.js">
</script>

	</head>
	<%
		if (session.getAttribute("user") == null)
			response.sendRedirect("LoginForm.jsp?status=Session Expired");
	%>
	<body>
		<table align="center" width="970" height="90">
			<tr>
				<td bgcolor="669900">
					<img src="images/gasimage.bmp">
				</td>
			</tr>
		</table>

		<table align="center" width="970" height="30">
			<tr>
				<td bgcolor="FF0000">
					<center><jsp:include page="./Adminoptions.jsp" /></center>
				</td>
			</tr>
		</table>

		<table align="center" width="970" height="400" bgcolor="6699CC">

			<tr>
				<td>
					<table align="center" bgcolor="#ffddd">
						<tr>
							<td bgcolor="red" align="center">
								<font color="white"><b>Connection Type Reg Form</b>
								</font>
							</td>
						</tr>
						<tr>
							<td>
								<%
									if (request.getParameter("status") != null) {
								%>
								<font color="red"><%=request.getParameter("status")%></font>
								<%
									}
								%>
								<form name="connectiontypeform" action="./ConnectionTypeAction">
									<table align="center">
										<tr>
											<td>
												ConnectionTypeName
											</td>
											<td>
												<input type="text" name="ctname">
											</td>
										</tr>
										<tr>
											<td>
												ConnectionTypeDesc
											</td>
											<td>
												<input type="text" name="ctdesc">
											</td>
										</tr>
										<tr>
											<td>
												<input type="submit" value="Register">
											</td>
											<td>
												<input type="reset" value="Cancel">
											</td>
										</tr>


									</table>
								</form>
								<script language="JavaScript" type="text/javascript">
//You should create the validator only after the definition of the HTML form
var frmvalidator = new Validator("connectiontypeform");
frmvalidator
		.addValidation("ctname", "req", "Please enter Connection Type Name");
frmvalidator
		.addValidation("ctdesc", "req", "Please enter Connection Type Desc");
</script>
							</td>
						</tr>

					</table>
				</td>
			</tr>
		</table>

	</body>
</html>
